<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>各村概况添加页面</title>
  <link rel="stylesheet" href="../../../yl/index.css" />
  <!-- 布局样式 -->
  <link rel="stylesheet" href="../../../yl/style.css" />
  <link rel="stylesheet" href="../../../style/wangeditor.css">
  <link rel="stylesheet" href="../../../yl/mobile.css" />
  <link rel="stylesheet" href="../../../yl/easyui.css" />
  <link rel="stylesheet" href="../../../yl/icon.css" />
</head>

<body>
  <!-- <div id="app"> -->
  <div class="easyui-navpanel" id="app" v-cloak>
    <header>
      <div class="m-toolbar">
        <div class="m-title">{{action=='Add'?'添加各村概况信息':action=='Modify'?'各村概况信息':''}}</div>
      </div>
    </header>
    <div class="easyui-navpanel panel-body panel-body-nobottom panel-body-noborder" style="height: 3000px"
      id="MainTable" ref="MainTable"
      :data-options="JSON.stringify({ 'TableName': 'district_introduction', 'form': 'dataForm' ,'primary_key':'District_Introduction_SerialNumber' })">
      <div class="yl-main">
        <div class="table_titel">
          <div class="titel">各村概况信息</div>
        </div>
        <el-form :model="dataForm" ref="form" :inline-message="true" style="width: 100%">
          <!-- <el-descriptions :column="1" size="large" border>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">行政区等级</div>
              </template>
              <el-form-item :rules="[{ required: true, message: '请选择行政区等级', trigger: 'change' }]" prop="Level">
                <el-select @change="changeLevel" clearable v-model.trim="dataForm.Level" placeholder="请选择行政区等级" filterable
                  style="width: 100%">
                  <el-option v-for="(item,index) in Level" :key="index" :label="item.label" :value="item.value"></el-option>
                </el-select>
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item v-if="dataForm.Level == '1'">
              <template #label>
                <div class="cell-item">省行政区</div>
              </template>
              <el-form-item prop="District_Number">
                <el-select clearable v-model.trim="dataForm.District_Number" placeholder="请选择行政区" filterable
                  style="width: 100%">
                  <el-option v-for="(item,index) in village" :key="index" :label="item.Province" :value="item.ProvinceNumber"></el-option>
                </el-select>
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item v-if="dataForm.Level == '2'||dataForm.Level == '3'||dataForm.Level == '4'">
              <template #label>
                <div class="cell-item">行政区</div>
              </template>
              <el-form-item prop="District_Number">
                <el-cascader @change="changeValue" v-model="cityValue" filterable class="borderless-input"
                  :props="{value:'value',label:'label',children:'children'}" placeholder="请选择行政区" :options="village"
                  style="width: 100%"></el-cascader>
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item  v-if="dataForm.Level == '5'">
              <template #label>
                <div class="cell-item">省/市/区/街道</div>
              </template>
              <el-form-item>
                <el-cascader @change="changeValue" v-model="cityValue" filterable class="borderless-input"
                  :props="{value:'value',label:'label',children:'children'}" placeholder="请选择省/市/区/街道" :options="village"
                  style="width: 100%"></el-cascader>
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item v-if="dataForm.Level == '5'">
              <template #label>
                <div class="cell-item">行政区</div>
              </template>
              <el-form-item prop="District_Number">
                <el-select clearable v-model.trim="dataForm.District_Number" placeholder="请选择行政区" filterable style="width: 100%">
                  <el-option v-for="(item,index) in village1" :key="index" :label="item.Village"
                    :value="item.VillageNumber"></el-option>
                </el-select>
              </el-form-item>
            </el-descriptions-item>
          </el-descriptions> -->
          <el-descriptions :column="1" size="large" border>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">省/市/区(县)</div>
              </template>
              <el-form-item>
                <el-cascader :disabled="action=='Modify'" @change="changeValue" v-model="cityValue" filterable class="borderless-input"
                  :props="{value:'value',label:'label',children:'children',checkStrictly: true}" placeholder="请选择省/市/区/街道" :options="village"
                  style="width: 100%"></el-cascader>
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">街道(乡镇)/区委会(村委会)</div>
              </template>
              <el-form-item>
                <el-cascader :disabled="action=='Modify'" @change="changeValue1" v-model="cityValue1" filterable class="borderless-input" clearable
                  :props="{value:'ProvinceNumber',label:'Province',children:'children',checkStrictly: true}" placeholder="请选择街道(乡镇)/区委会(村委会)" :options="village1"
                  style="width: 100%"></el-cascader>
              </el-form-item>
            </el-descriptions-item>
            <!-- <el-descriptions-item>
              <template #label>
                <div class="cell-item">村名</div>
              </template>
              <el-form-item :rules="[{ required: true, message: '请输入村名', trigger: 'change' }]" prop="District_Name">
                <el-input v-model="dataForm.District_Name" class="borderless-input" placeholder="请输入村名" />
              </el-form-item>
            </el-descriptions-item> -->
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">面积(km²)</div>
              </template>
              <el-form-item prop="Area" :rules="[{ required: true, validator:(rule, value, callback)=>validator('请输入面积',value, callback), trigger: 'blur' }]">
                <el-input :disabled="action=='Modify'" v-model="dataForm.Area" class="borderless-input" placeholder="请输入面积" />
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">耕地面积(km²)</div>
              </template>
              <el-form-item prop="Cultivated_Area" :rules="[{ required: true, validator:(rule, value, callback)=>validator('请输入耕地面积',value, callback), trigger: 'blur' }]">
                <el-input :disabled="action=='Modify'" v-model="dataForm.Cultivated_Area" class="borderless-input" placeholder="请输入耕地面积" />
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">水域面积(km²)</div>
              </template>
              <el-form-item prop="Water_Area" :rules="[{ required: true, validator:(rule, value, callback)=>validator('请输入水域面积',value, callback), trigger: 'blur' }]">
                <el-input :disabled="action=='Modify'" v-model="dataForm.Water_Area" class="borderless-input" placeholder="请输入水域面积" />
              </el-form-item>
            </el-descriptions-item>
            <!-- <el-descriptions-item>
              <template #label>
                <div class="cell-item">简介项目</div>
              </template>
              <el-form-item prop="Introduction_Item" :rules="[{ required: true, message: '请输入简介项目', trigger: 'blur' }]">
                <el-input :disabled="action=='Modify'" type="textarea" :autosize="{ minRows: 2}" v-model="dataForm.Introduction_Item" class="borderless-input" placeholder="请输入简介项目" />
              </el-form-item>
            </el-descriptions-item> -->
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">村情概况</div>
              </template>
              <el-form-item prop="Introduction_Content" :rules="[{ required: true, message: '请输入村情概况', trigger: 'blur' }]">
                <yl-text-editor :disabled="action=='Modify'" v-model="dataForm.Introduction_Content" placeholder="请输入村情概况"></yl-text-editor>
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">村规村约</div>
              </template>
              <el-form-item prop="Village_Regulations" :rules="[{ required: true, message: '请输入村规村约', trigger: 'blur' }]">
                <yl-text-editor :disabled="action=='Modify'" v-model="dataForm.Village_Regulations" placeholder="请输入村规村约"></yl-text-editor>
              </el-form-item>
            </el-descriptions-item>
          </el-descriptions>
        </el-form>
      </div>
    </div>
    <footer class="botton-ann">
      <el-button @click="goBack">返回</el-button>
      <el-button type="primary" v-if="action=='Add'" :loading="loading" plain @click="handleSubmit">提交</el-button>
    </footer>
  </div>
</body>
<script src="../../../utils/utils.js"></script>
<script src="../../../config/config.js"></script>
<script src="../../../utils/compressor.js"></script>
<script src="../../../utils/wangeditor.js"></script>
<script src="../../../utils/mixins.js"></script>
<script src="../../../yl/vue.js"></script>
<script src="../../../yl/index.js"></script>
<script src="../../../yl/zh-cn.mjs"></script>
<script src="../../../yl/index.iife.min.js"></script>
<script src="../../../yl/jquery.min.js"></script>
<script src="../../../utils/jquery.cookie.js"></script>
<script src="../../../yl/jquery.easyui.min.js"></script>
<script src="../../../yl/jquery.easyui.mobile.js"></script>
<script src="../../../yl/moment.min.js"></script>
<script src="../../../api/request.js"></script>
<script src="./js/add.js"></script>

</html>